package com.yun.zf.common.app.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 买卖租售维护信息表
 * </p>
 *
 * @author cj
 * @since 2021-03-01
 */
@TableName("zf_house_info")
@Data
public class ZfHouseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @NotNull(message = "房源表id代码不能为空")
    @ApiModelProperty(value = "房源id")
    private Long basicId;

    @NotNull(message = "省级区划代码不能为空")
    @ApiModelProperty(value = "省级区划代码")
    private Long provinceCode;

    @NotNull(message = "城市编码不能为空")
    @ApiModelProperty(value = "城市编码")
    private Long cityCode;

    @ApiModelProperty(value = "家具，卖房显示业主可留下的项目1：床，2：衣柜，3桌椅，4：无家具")
    private String furniture;

    @ApiModelProperty(value = "房屋设备，1暖气2宽带3天然气4无设备")
    private String equipment;

    @ApiModelProperty(value = "电器1电视2冰箱3洗衣机4空调5热水器6微波炉7燃气灶8油烟机9无家电")
    @TableField("electricAppliance")
    private String electricappliance;

    @ApiModelProperty(value = "房源装修情况,mp 毛坯，jian 简装，jz 精装，hz 豪华装修")
    private String fixtures;

    @ApiModelProperty(value = "装修年份")
    private Integer fixturesYear;

    @ApiModelProperty(value = "车位数")
    private Integer parking;

    @ApiModelProperty(value = "格局是否有变动 0有，1无")
    private Integer isChange;

    @ApiModelProperty(value = "业主是否承担佣金，0 愿意，1 不愿意")
    private Integer isOwnerPay;

    @ApiModelProperty(value = "付款方式1线上2线下、3无")
    private Integer payType;

    @ApiModelProperty(value = "房屋现状：1空置、2待清出")
    private Integer status=1;

    @ApiModelProperty(value = "可入住时间,如果为ss则可随时入住")
    private String checkInTime;

    @ApiModelProperty(value = "联系人是否为产权人 是Y，否N")
    private String propertyOwner;

    @ApiModelProperty(value = "挂牌时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date listingTime;

    /**
     * 房源标签写入配置表，根据类型，每个配置不一样的标签, 最多打入5个标签
     * 房源标签，出租 近地铁：JDT ，拎包入住：LBRZ,精装修：JZX ,押一付一：YYFY,随时看房：SSKF,双卫：SW
     * 合租：独卫：DW, 独立阳台：DLYT，近地铁：JDT ，拎包入住：LBRZ,精装修：JZX ,押一付一：YYFY,随时看房：SSKF
     * 出售：必看好房：BKHF ,满五年：MWN， 满两年：MLN,随时看房 SSKF，近地铁：JDT
     */
    @ApiModelProperty(value = "房源标签")
    private String tags;


    @ApiModelProperty(value = "是否推荐是Y 否N")
    private String isRecommend;


    @ApiModelProperty(value = "推荐理由")
    private String recommendReason;


    @ApiModelProperty(value = "特殊分类标签，如别墅，高档精品房，总价低，折扣专区，聚划算")
    private String specialTag;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime ;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifiedTime = new Date();

}
